package org.example.mapper;
import org.apache.ibatis.annotations.Param;
import org.example.entity.Student;
import java.io.IOException;
import java.util.List;
public interface StudentMapper {
    //查询有返回值 是Student类   方法名应与映射文件中的方法名一样
    Student getById(String id) throws IOException;
    //查询所有 会把整个类变成一个集合 用一个集合来接收
    List<Student> getall() throws IOException;

    List<Student> getname(String name) throws IOException;
    List<Student> get(@Param("name") String name ,@Param("age") int age) throws IOException;
    //增删改没有返回值
    //增改 需要写入内容 我们把整个类 写入
    void insert(Student student) throws IOException;
    void update(Student student) throws IOException;
    //删 需要 id 我们要指定删除那一个信息
    void delete(String id) throws IOException;
    void deletes(List<String> lists) throws IOException;
    List<Student> select (Student s) throws IOException;
    void update2(Student student) throws IOException;
}










